package com.igeek.print;

public class StudentInfo extends Info{

    public StudentInfo() {
    }

    public StudentInfo(String stuNo, String name, String gender, int age) {
        this.stuNo = stuNo;
        this.name = name;
        this.gender = gender;
        this.age = age;
    }

    private String stuNo;

    private String name;

    private String gender;

    private int age;

    public String getStuNo() {
        return stuNo;
    }

    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public void showInfo() {
        System.out.println("学生信息的展示：\n姓名："+name+"\t年龄："+age);
    }
}
